package com.jiuling.apis.service.basic;

import com.jiuling.apis.model.Hmodel.TBaseMerchant;
import com.jiuling.apis.model.Pmodel.Pmerchant;
import com.jswzc.model.Pager;

import java.util.List;
import java.util.Map;

/**
 * Created by tomchen on 17/6/7.
 */
public interface MerchantServiceI {
    TBaseMerchant getMerchantById(String identity_code) throws Exception;

    /**
     * 查询第一级类目
     * @return
     * @throws Exception
     */
    List<Map<String,Object>> queryCategoryFirst()throws  Exception;

    /**
     * 查询次级类目
     * @param parent_code
     * @return
     * @throws Exception
     */
    List<Map<String,Object>> queryCategoryByParent(String parent_code)throws Exception;


    String doSave(Pmerchant pmerchant,String userId,String identityCode) throws Exception;

    Map<String,Object> getMerchantWithStrategyById(String identityCode) throws Exception;

    Pager<Map<String,Object>> queryMerchant(Pager<Map<String,Object>> pager) throws Exception;

    void doApprove(Pmerchant pmerchant)throws Exception;
}
